﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Joyintech.BLL.inpiao365;
using Joyintech.Model.inpiao365;

namespace Joyintech.Web.inpiao365.PhenixTicket
{
    public partial class filmmessage : System.Web.UI.Page
    {
        private String movieid;
        protected List<movieComment> movieCommentList;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
                return;
            else
            {
                movieid = Request["movieid"];
                BindMessage();
            }

        }

        /// <summary>
        /// 绑定留言信息
        /// </summary>
        private void BindMessage()
        {
            movieComment_BLL commentbll = new movieComment_BLL();
            String sqlWhere = " MovieId={0} order by CommentTime desc ";
            movieCommentList = commentbll.GetModelList(string.Format(sqlWhere, movieid));
            int resultCount = commentbll.GetCount();
            messageRecordCount.Value = resultCount.ToString();
        }
    }
}